package usermanager

class Person {
	String firstName
	String lastName
	String email
	String home
	String mobile
	String bio2
	static belongsTo = [ projects : Project ]
	String projectName
    static constraints = {
		firstName(size:2..10,  blank : false,)
		lastName(size:2..10,  blank : false)
		email(email: true, nullable: true)
		home(size:5..10, nullable: true)
		mobile(size:9..14, nullable: true)
		bio2(nullable: true)
		projects(nullable: true)
		projectName(nullable: true)
    }
}
